home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 3
/
BBS in a box - Trilogy III.iso
/
Files
/
Prog
/
B-C
/
C++ FAQ Reference 1.0
/
C++ FAQ Reference 1.0.rsrc
/
TEXT_1528.txt
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1993-06-30
|
306 b
|
6 lines
Tell the C++ compiler that it is a C function: extern "C" void f(); Be sure to include the full function prototype. A block of many C functions can be grouped via braces, as in:
extern "C" {
void* malloc(size_t);
char* strcpy(char* dest, const char* src);
int printf(const char* fmt, ...);
}